package com.ygqh.baby.mapper;
import com.ygqh.baby.po.YgOrderTrack;
import com.ygqh.baby.po.YgOrderTrackExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
public interface YgOrderTrackMapper {
    int countByExample(YgOrderTrackExample example);

    int deleteByExample(YgOrderTrackExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgOrderTrack record);

    int insertSelective(YgOrderTrack record);

    List<YgOrderTrack> selectByExample(YgOrderTrackExample example);

    YgOrderTrack selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgOrderTrack record, @Param("example") YgOrderTrackExample example);

    int updateByExample(@Param("record") YgOrderTrack record, @Param("example") YgOrderTrackExample example);

    int updateByPrimaryKeySelective(YgOrderTrack record);

    int updateByPrimaryKey(YgOrderTrack record);
    
    int countSuper(@Param ("q") String q, @Param("startDate")Date startDate, @Param("endDate")Date endDate, @Param("isFinished")Boolean isFinished, @Param("srcId")String srcId,@Param("workType")String workType);
    
    List<YgOrderTrack> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q, @Param("startDate")Date startDate, @Param("endDate")Date endDate, @Param("isFinished")Boolean isFinished, @Param("srcId")String srcId,@Param("workType")String workType);

	List<Map<String, Object>> selectList(@Param ("q") String q, @Param("startDate")Date startDate, @Param("endDate")Date endDate, @Param("isFinished")Boolean isFinished, @Param("srcId")String srcId,@Param("workType")String workType);
    
}



